<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8">
    <title>角色管理</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <script src="https://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js"></script>
<!--    <script rel="script" type="text/javascript" th:src="@{/js/jquery-3.5.1.min.js}"></script>-->
    <link rel="stylesheet" th:href="@{/layui/css/layui.css}"  media="all">
    <link rel="stylesheet" th:href="@{/css/roleManager.css}"  media="all">
    <script rel="script" type="text/javascript" th:src="@{/layui/layui.js}"></script>
    <script rel="script" type="text/javascript" th:src="@{/js/roleManager.js}"></script>
    <script rel="script" type="text/javascript" th:src="@{/js/formVerify.js}"></script>

</head>
<body>
<script type="text/html" id="topTools">
    <div class="layui-btn-container layui-inline" id="toolsBtnGroup">
        <button id="btn_createRole" type="button" class="layui-btn layui-btn-normal" onclick="createRoleModel()">新增角色</button>
    </div>
</script>
<table class="layui-hide" id="rolesList" lay-filter="rolesList"></table>

<script type="text/html" id="roleOperator">
    {{# if(d.id != 3){ }}
    <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del">删除</a>
    {{# if(d.status == 0 && d.id != 3){ }}
    <a class="layui-btn layui-btn-xs"  lay-event="enable">启用</a>
    {{# }else if(d.status == 1 && d.id != 3){ }}
    <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="disable">禁用</a>
    {{# } }}
    {{# } }}
</script>





<div id="createRole" class="layui-form" style="display: none">
    <form id="createRoleForm" class="layui-form layui-form-pane">
        <div class="layui-form-item">
            <label class="layui-form-label">角色名</label><input type="text" name="roleName" autocomplete="off" class="layui-input" lay-verify="required|role" style="width: 40%"><br>
            <label class="layui-form-label">角色描述</label><input type="text" name="description" class="layui-input " lay-verify="required" style="width: 40%"><br>
        </div>
        <button type="button" id="btn_addRole" lay-filter="addRole" class="layui-btn" style="margin-left: 40%" action="javascript:void(0)" lay-submit="">新增</button>
    </form>
</div>
</body>
<script>

</script>
</html>